package ar.edu.itba.pod.legajo48013.event;

import ar.edu.itba.event.EventInformation;

public class ProcessedEvent {

	private long timestamp;
	private EventInformation event;
	
	public ProcessedEvent(long timestamp, EventInformation event) {
		this.event = event;
		this.timestamp = timestamp;
	}
	
	public long getTimestamp() {
		return timestamp;
	}
	
	public EventInformation getEvent() {
		return event;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof ProcessedEvent){
			return event.equals(((ProcessedEvent)obj).getEvent());
		}
		return false;
	}
	
}
